package com.ctgu.A1_3;

import java.util.List;

public class Student {
    private String name;
    private int id;
    private String school;
    private List<Subject> subjectList;// 学生选修的课程

    public Student() {
    }

    public Student(String name, int id, String school, List<Subject> subjectList) {
        this.name = name;
        this.id = id;
        this.school = school;
        this.subjectList = subjectList;
    }

    @Override
    public String toString() {
        return "学生{" +
                "学生名='" + name + '\'' +
                ", 学生id=" + id +
                ", 学校名=" + school +
                ", 课程列表=" + subjectList +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public List<Subject> getSubjectList() {
        return subjectList;
    }

    public void setSubjectList(List<Subject> subjectList) {
        this.subjectList = subjectList;
    }
}
